package org.monkey.common.constant.util;

import cn.hutool.core.io.FileUtil;
import java.io.File;
import java.util.concurrent.TimeUnit;

public class MonkeyIoUtil {

  public static void  batchCreateDirs(String... dirs){
    for(String moduleDir:dirs) {
      FileUtil.mkdirsSafely(new File(moduleDir), 3, TimeUnit.SECONDS.toMillis(1));
    }
  }

  public static void batchDelete(File... files){
    for(File file:files){
      FileUtil.del(file);
    }
  }
}
